package m.jclecai.com.dialog;

import android.content.Context;

import butterknife.OnClick;
import m.jclecai.com.R;
import m.jclecai.com.listener.Callback;

/**
 * Created by ZD on 2017/7/4.
 */

public class MyFailedDialog extends BaseDialog {

    public MyFailedDialog(Context context) {
        super(context);
        initView();
    }

    void initView() {
        setContentView(R.layout.dialog_gift_failed);
    }


    @OnClick(R.id.tvUp)
    void up() {
        dismiss();
        if(callback != null)
            callback.callback();
    }

    @OnClick(R.id.tvNext)
    void next() {
        dismiss();
    }

    Callback callback;

    public void setCallback(Callback callback) {
        this.callback = callback;
    }
}
